import request from '@/utils/request'

// 查询零元质检列表
export function listService(query) {
  return request({
    url: '/zero/service/list',
    method: 'get',
    params: query
  })
}

export function orderList(customerId) {
  return request({
    url: '/zero/service/orderList/'+customerId,
    method: 'get',
  })
}


// 查询零元质检详细
export function getService(zeroId) {
  return request({
    url: '/zero/service/' + zeroId,
    method: 'get'
  })
}

// 新增零元质检
export function addService(data) {
  return request({
    url: '/zero/service',
    method: 'post',
    data: data
  })
}

// 修改零元质检
export function updateService(data) {
  return request({
    url: '/zero/service',
    method: 'put',
    data: data
  })
}

// 删除零元质检
export function delService(zeroId) {
  return request({
    url: '/zero/service/' + zeroId,
    method: 'delete'
  })
}

// 导出零元质检
export function exportService(query) {
  return request({
    url: '/zero/service/export',
    method: 'get',
    params: query
  })
}
